/** 
 * @file
 * @description 公共组件注册文件 
 */

import {
    Button,
    Table,
    Tree,
    Form,
    FormItem,
    Card,
    Input,
    Menu,
    MenuItem,
    MessageBox,
    Breadcrumb,
    BreadcrumbItem,
    MenuItemGroup,
    Submenu,
    Result,
    TableColumn,
    Pagination,
    Alert,
    Option,
    Select,
    Tabs,
    TabPane,
    Dialog,
    Switch,
    Message,
    Loading,
    Container,
    Main,
    Aside,
    Tag,
    Cascader,
    TimelineItem,
    Timeline,




} from "element-ui";

import { confirm } from "uti/common";
import { myConfirm } from '../components/MyConfirm/index';
import MyDialog from "com/Dialong";
import MyTable from "../components/Table";
import Search from "com/Search";
import Myform from "com/Myform";
import DF from "com/DialogForm"
export default {
    install(Vue) {
        Vue.prototype.$mb = MessageBox;
        Vue.prototype.$confirm = confirm;
        Vue.prototype.$m = Message;
        Vue.prototype.$myConfirm = myConfirm;
        [MyDialog, MyTable, Search, Myform, DF].forEach(item => Vue.component(item.name, item)),

            [
                Breadcrumb,
                BreadcrumbItem,
                Button,
                Table,
                Tree,
                Form,
                FormItem,
                Input,
                Menu,
                MenuItem,
                MenuItemGroup,
                Submenu,
                Result,
                Card,
                TableColumn,
                Pagination,
                Alert,
                Option,
                Select,
                Tabs,
                TabPane,
                Dialog,
                Switch,
                Message,
                Loading,
                Container, Main,
                Aside,
                Tag,
                Cascader,
                Timeline,
                TimelineItem

            ].forEach(item => Vue.use(item));
    }
}